<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<meta name="viewport" content="width=device-width, initial-scale=1">
<html>
<head>
	<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
	<title>易学网运营中心</title>
	<script src="/js/base/require.min.js"></script>
	<script type="text/javascript">
		require.config({
			paths: {
				"require-config":"/js/base/require.config"
			}
		});

		require(["require-config"],function (){
			require(["validationEngine"],function () {
				$(function () {
					$("#saveBtn").click(function () {
						var valid = $("#saveform").validationEngine("validate");
						if (!valid) {
							return;
						}
						window.document.forms[0].submit();
					});

					var validateOption = {
						scroll: false,
						ajaxFormValidation: true,
						//binded:false,
						//showArrow:false,
						//promptPosition:"centerRight",
						autoHidePrompt: false,
						maxErrorsPerField: 1,
						showOneMessage: true
					};
					$("#saveform").validationEngine(validateOption);
				});
			});
		});

	</script>
</head>
<body>

<div class="middle">

	<div class="maincontent">
		<div class="pagelabel">
			<div class="paddingleft30">编辑角色</div>
		</div>
		<div id="orghelpmain">

			<form method="post" id="saveform" class="form-inline" action="${r"${controllerUrlPrefix}"}/add.do">
				<#list table.notPkColumns as column>
					<#if (column.insertable)!false>
						${column.htmlInput!""}
					</#if>
				</#list>
			</form>
			<div class="tools_div">
				<a class="tablectrl_middle bDefault" id="saveBtn">保存</a>
			</div>
		</div>

	</div>

</div>

</body>
</html>
